class Student
{
	private int rollNo;
	private String name;
    private String dept;
	
	public Student(int r, String nm, String dpt)
	{
		rollNo=r;
		name=nm;
		dept=dpt;
	}
	public void show()
	{
		System.out.println("Roll No.  :"+rollNo);
		System.out.println("Name    :"+name);
		System.out.println("Dept.    :"+dept);
	}
}

class Library extends Student
{
     private int bookId;
	 private int noOfDays;
  
	 public Library(int bid, int nds,int r, String nm, String dpt)
	{
		 super(r,nm,dpt); //calling base class constructor
	
		 bookId=bid;
		 noOfDays=nds;
	}
	public void show()
	{
		super.show();
		System.out.println("Book ID :"+bookId);
		System.out.println("No of Days :"+noOfDays);
	}
}


public class Inheritance5
{
	public static void main(String[] args) 
	{
	
		Library lib=new Library(11,5,101,"Raju","CS");
	    lib.show();

		
		System.out.println("Thank you!");
	}
}
